import request from '@/utils/request'

export function getStaffList(params) {
  return request({
    url: '/api/staff/list/all',
    method: 'post',
    data: params
  })
}

export function updateStaff(params) {
  return request({
    url: '/api/staff/edit',
    method: 'post',
    data: params
  })
}
export function addStaff(params) {
  return request({
    url: '/api/staff/add',
    method: 'post',
    data: params
  })
}
export function getStaffById(id) {
  return request({
    url: '/api/staff/detail',
    method: 'get',
    params: { 'id': id }
  })
}

export function deleteStaffById(id) {
  return request({
    url: '/api/staff/delete',
    method: 'get',
    params: { 'id': id }
  })
}
